<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>07_DOM0-低级浏览器-绑定</title>
    </head>
    <body>
        <button id="btn">绑定</button>

        <script>
            var btn = document.getElementById('btn');

            // DOM0的高级浏览器的绑定方式是一致的
            btn.onclick = function(){
                console.log(11111);
            }
        </script>
    </body>
</html>